// +----------------------------------------------------------------------
// | CmsWing [ 网站内容管理框架 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2115 http://www.cmswing.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: arterli <arterli@qq.com>
// +----------------------------------------------------------------------
module.exports = class extends think.cmswing.center {
  /**
     * index action
     * @return {Promise} []
     */
  async indexAction() {
  	let model = this.model('category');
    let data = await model.limit(2).select();
  	return this.success({data:data})
//    let model = this.model('category');
//    const data = await model.page(this.get('page')).countSelect();
//    return this.success({data:data})
   }   
};
